#include <stdio.h>

int main() {
    int n;
    scanf("%d", &n);

    int a = n;
    printf("%d=", a);

    int b = 1;

    for (int i = 2; i <= n; i++) {
        while (n % i == 0) {
            if (b) {
                printf("%d", i);
                b = 0;
            } else {
                printf("*%d", i);
            }
            n /= i;
        }
    }

    return 0;
}
